﻿using System;
using fastCSharp;

namespace diantou.web.topic
{
    /// <summary>
    /// 话题名称首页
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPool = true, IsReferer = false)]
    partial class name : index<name>
    {
        /// <summary>
        /// 话题首页
        /// </summary>
        /// <param name="name">话题名称</param>
        /// <param name="page">分页号</param>
        /// <returns>是否成功</returns>
        private bool loadView(string name, int page)
        {
            if (name.length() == 0)
            {
                checkSearchEngine(null, webConfig.NotFound404);
                return false;
            }
            topic = diantou.dataAccess.tcpCall.topic.Get(name);
            if (topic != null)
            {
                loadQuestion(page);
                return true;
            }
            AjaxResponse(webConfig.NotFound404);
            return false;
        }
    }
}
